package com.user.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;  
import org.springframework.web.bind.annotation.RequestMapping;  

import com.user.entity.StudentEntity;
import com.user.mapper.StudentMapper;
  
@Controller  
public class GeneralController {  
  
	@Autowired  
    private StudentMapper studentMapper;  
      
    @RequestMapping(value = "index.do")  
    public void indexPage(String name) {     
        StudentEntity entity = studentMapper.getStudent("123456");  
        System.out.println("name:" + entity.getStudentName());  
        System.out.println(name);
    }      
}  